package com.n9.qq.android.firendlist;

import com.qq.taf.jce.JceInputStream;
import com.qq.taf.jce.JceOutputStream;
import com.qq.taf.jce.JceStruct;

import java.util.ArrayList;

/**
 * @author ice
 * @since 2019/2/22 17:13
 */
public class stGroupRankInfo extends JceStruct {
    public byte cGroupRankSysFlag = 0;
    public byte cGroupRankUserFlag = 0;
    public long dwGroupCode = 0L;
    public long dwGroupRankSeq = 0L;
    public String strAdminName = "";
    public String strOwnerName = "";
    public ArrayList vecRankMap = null;

    public stGroupRankInfo() {
    }

    public stGroupRankInfo(long var1, byte var3, byte var4, ArrayList var5, long var6, String var8, String var9) {
        this.dwGroupCode = var1;
        this.cGroupRankSysFlag = var3;
        this.cGroupRankUserFlag = var4;
        this.vecRankMap = var5;
        this.dwGroupRankSeq = var6;
        this.strOwnerName = var8;
        this.strAdminName = var9;
    }

    @Override
    public void readFrom(JceInputStream var1) {
        this.dwGroupCode = var1.read(this.dwGroupCode, 0, true);
        this.cGroupRankSysFlag = var1.read(this.cGroupRankSysFlag, 1, false);
        this.cGroupRankUserFlag = var1.read(this.cGroupRankUserFlag, 2, false);
        if (vecRankMap == null) {
            vecRankMap = new ArrayList();
            stLevelRankPair var2 = new stLevelRankPair();
            vecRankMap.add(var2);
        }

        this.vecRankMap = (ArrayList)var1.read(vecRankMap, 3, false);
        this.dwGroupRankSeq = var1.read(this.dwGroupRankSeq, 4, false);
        this.strOwnerName = var1.readString(5, false);
        this.strAdminName = var1.readString(6, false);
    }

    @Override
    public void writeTo(JceOutputStream var1) {
        var1.write(this.dwGroupCode, 0);
        var1.write(this.cGroupRankSysFlag, 1);
        var1.write(this.cGroupRankUserFlag, 2);
        if (this.vecRankMap != null) {
            var1.write(this.vecRankMap, 3);
        }

        var1.write(this.dwGroupRankSeq, 4);
        if (this.strOwnerName != null) {
            var1.write(this.strOwnerName, 5);
        }

        if (this.strAdminName != null) {
            var1.write(this.strAdminName, 6);
        }

    }
}
